<extend name="base"/>
<block name="style2">
</block>
<block name="js2">
    <script type="text/javascript" src="__PUBLIC__/Module/JS/modModule.js"></script>
    <script type="text/javascript">
        $(function(){
            $('button[name="back"]').click(function(event) {
                window.location.href='<{:U("Home/Module/moduleInfo",array("type"=>$moduleData["type"]))}>';
            });
        })
    </script>
</block>
<block name="meau">
	<div class="col-sm-3 col-md-2 sidebar">
        <ul class="nav nav-sidebar">
           <switch name="moduleData['type']">
                <case value="土建专业">
                    <li class="active"><a href='<{:U("Home/Module/ModuleInfo",array("type"=>"土建专业"))}>'>土建专业</a></li>
                    <li ><a href='<{:U("Home/Module/ModuleInfo",array("type"=>"铁塔专业"))}>'>铁塔专业</a></li>
                    <li ><a href='<{:U("Home/Module/ModuleInfo",array("type"=>"配套专业"))}>'>配套专业</a></li>
                    <li ><a href='<{:U("Home/Module/ModuleInfo",array("type"=>"交流专业"))}>'>交流专业</a></li>
                </case>
                <case value="铁塔专业">
                    <li ><a href='<{:U("Home/Module/ModuleInfo",array("type"=>"土建专业"))}>'>土建专业</a></li>
                    <li class="active"><a href='<{:U("Home/Module/ModuleInfo",array("type"=>"铁塔专业"))}>'>铁塔专业</a></li>
                    <li ><a href='<{:U("Home/Module/ModuleInfo",array("type"=>"配套专业"))}>'>配套专业</a></li>
                    <li ><a href='<{:U("Home/Module/ModuleInfo",array("type"=>"交流专业"))}>'>交流专业</a></li>
                </case>
                <case value="交流专业">
                    <li ><a href='<{:U("Home/Module/ModuleInfo",array("type"=>"土建专业"))}>'>土建专业</a></li>
                    <li ><a href='<{:U("Home/Module/ModuleInfo",array("type"=>"铁塔专业"))}>'>铁塔专业</a></li>
                    <li ><a href='<{:U("Home/Module/ModuleInfo",array("type"=>"配套专业"))}>'>配套专业</a></li>
                    <li class="active"><a href='<{:U("Home/Module/ModuleInfo",array("type"=>"交流专业"))}>'>交流专业</a></li>

                </case>
                <case value="配套专业">
                    <li ><a href='<{:U("Home/Module/ModuleInfo",array("type"=>"土建专业"))}>'>土建专业</a></li>
                    <li ><a href='<{:U("Home/Module/ModuleInfo",array("type"=>"铁塔专业"))}>'>铁塔专业</a></li>
                    <li class="active"><a href='<{:U("Home/Module/ModuleInfo",array("type"=>"配套专业"))}>'>配套专业</a></li>
                    <li ><a href='<{:U("Home/Module/ModuleInfo",array("type"=>"交流专业"))}>'>交流专业</a></li>
                </case>
                <default />
                    <li ><a href='<{:U("Home/Module/ModuleInfo",array("type"=>"土建专业"))}>'>土建专业</a></li>
                    <li ><a href='<{:U("Home/Module/ModuleInfo",array("type"=>"铁塔专业"))}>'>铁塔专业</a></li>
                    <li ><a href='<{:U("Home/Module/ModuleInfo",array("type"=>"配套专业"))}>'>配套专业</a></li>
                    <li ><a href='<{:U("Home/Module/ModuleInfo",array("type"=>"交流专业"))}>'>交流专业</a></li>
          </switch>
        </ul>
	</div>
</block>
<block name="content">
<div class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main"><!--父元素-->
    <div class="modal-dialog" role="document" style="width:1000px;margin-top:0px;margin-left:0px;">
        <div class="modal-header">
            <h2 class="modal-title" id="myModalLabel">修改模块 <button class="btn btn-default" style="margin-left:20px;height:32px" name="back">返回</button></h2>
        </div>
        <div class="modal-body">
            <form class="form-horizontal" method="post" action='<{:U("Home/Module/moduleInfo",array("status"=>"modhandler"))}>'>
                <div class="form-group">
                    <label for="inputPassword" class="col-sm-3 control-label ">所属专业</label>
                    <div class="col-sm-9">
                        <html:select style='form-control'  name="type" options="type" selected="moduleData['type']" />
                    </div>
                </div>
                <if condition="$moduleData['type'] eq '交流专业'">
                    <div class="form-group">
                        <label for="inputPassword" class="col-sm-3 control-label ">市电引入类型</label>
                        <div class="col-sm-9">
                            <input class="form-control" type="text" name="number" value="<{$moduleData['number']}>">
                        </div>
                    </div>
                <else />
                    <div class="form-group">
                        <label for="inputPassword" class="col-sm-3 control-label ">模块编号</label>
                        <div class="col-sm-9">
                            <input class="form-control" type="text" name="number" value="<{$moduleData['number']}>">
                        </div>
                    </div>
                </if>
                <div class="form-group">
                    <label for="inputPassword" class="col-sm-3 control-label ">模块名称</label>
                    <div class="col-sm-9">
                        <input class="form-control" type="text" name="module_name" value="<{$moduleData['module_name']}>">
                    </div>
                </div>
                <div class="form-group">
                    <label for="inputPassword" class="col-sm-3 control-label ">基础价格</label>
                    <div class="col-sm-9">
                        <input class="form-control" type="text" name="baseprice" value="<{$moduleData['baseprice']}>">
                    </div>
                </div>
                <if condition="$moduleData['type'] eq '交流专业'">
                    <div class="form-group">
                        <label for="inputPassword" class="col-sm-3 control-label ">超基础生产价格</label>
                        <div class="col-sm-9">
                            <input class="form-control" type="text" name="safeprice" value="<{$moduleData['safeprice']}>">
                        </div>
                    </div>
                <else />
                    <div class="form-group">
                        <label for="inputPassword" class="col-sm-3 control-label ">安全生产价格</label>
                        <div class="col-sm-9">
                            <input class="form-control" type="text" name="safeprice" value="<{$moduleData['safeprice']}>">
                        </div>
                    </div>
                </if>
                <if condition="$moduleData['type'] eq '交流专业'">
                    <div class="form-group">
                        <label for="inputPassword" class="col-sm-3 control-label ">基准数量</label>
                        <div class="col-sm-9">
                            <input class="form-control" type="text" name="basenum" value="<{$moduleData['basenum']}>">
                        </div>
                    </div>
                </if>
                <div class="form-group">
                        <label for="inputPassword" class="col-sm-3 control-label ">计量单位</label>
                        <div class="col-sm-9">
                            <input class="form-control" type="text" name="measure" value="<{$moduleData['measure']}>">
                        </div>
                </div>
                <div class="form-group">
                    <label for="inputPassword" class="col-sm-3 control-label ">模块属性</label>
                    <div class="col-sm-9">
                        <html:select style="form-control"  name="class" options="class" selected="moduleData['class']" />
                    </div>
                </div>
                <div class="form-group">
                        <label for="inputPassword" class="col-sm-3 control-label ">工作内容</label>
                        <div class="col-sm-9">
                            <input class="form-control" type="text" name="remark" value="<{$moduleData['remark']}>">
                            <input type="hidden" name="id" value="<{$moduleData['id']}>" >
                        </div>
                </div>
                <div class="modal-footer">
                      <button type="reset" class="btn btn-default" data-dismiss="modal">取消</button>
                      <button type="submit" class="btn btn-primary">确定修改</button>
                </div>
            </form>
        </div>
    </div>
</div>
</block>
